import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class CircleButton extends JButton {
    public CircleButton(Icon ico) {
        super(ico);
        setContentAreaFilled(false);
    }
    public CircleButton(Action action) {
        super(action);
        setContentAreaFilled(false);
    }
    public CircleButton(String s, Icon ico) {
        super(s, ico);
        setContentAreaFilled(false);
    }
    public CircleButton(String s) {
        super(s);
        setContentAreaFilled(false);
    }
    protected void paintComponent(Graphics g) {
        g.setColor(new Color(0x29, 0xc5, 0x66));
        g.fillOval(0, 0, getSize().width - 1, getSize().height - 1);
        super.paintComponent(g);
    }
    protected void paintBorder(Graphics g) {
        g.setColor(new Color(0x29, 0xc5, 0x66));
        g.drawOval(0, 0, getSize().width - 1, getSize().height - 1);
    }
}